home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / SetUpA4.h < prev    next >
Encoding:
Text File  |  1994-01-13  |  401 b   |  28 lines  |  [TEXT/MMCC]

  1. //
  2. //    CodeResource / DRVR / DA support functions 
  3. //
  4.  
  5. #ifndef __SETUPA4__
  6. #define __SETUPA4__
  7.  
  8. static void RememberA4(void);
  9.  
  10. static asm long SetUpA4(void)
  11. {
  12.     move.l    a4,d0
  13.     lea        storage,a4
  14.     move.l    (a4),a4
  15.     rts
  16.  
  17. storage:    dc.l    0    // this storage is only referenced thru data cache
  18.  
  19.     entry    static RememberA4
  20.     lea        storage,a0
  21.     move.l    a4,(a0)
  22.     rts
  23. }
  24.  
  25. static long RestoreA4(long:__D0):__D0 = 0xC18C;
  26.  
  27. #endif
  28.